package org.qy.star_server.core;

import lombok.Data;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * @author yinger
 * @description 将数据统计文件存储在内存中
 * @date 2024/3/29 20:31
 **/
@Data
public class Stat {
    private AtomicInteger fileValidCount = new AtomicInteger(0);
    private AtomicInteger fileTotalCount = new AtomicInteger(0);

    public Stat(int totalCount, int fileValidCount) {
        this.fileTotalCount.set(totalCount);
        this.fileValidCount.set(fileValidCount);
    }

    public int getFileValidCount() {
        return fileValidCount.get();
    }

    public void setFileValidCount(int fileValidCount) {
        this.fileValidCount.set(fileValidCount);
    }

    public int getFileTotalCount() {
        return fileTotalCount.get();
    }

    public void setFileTotalCount(int fileTotalCount) {
        this.fileTotalCount.set(fileTotalCount);
    }
}
